package reflect;

import java.util.ArrayList;
import java.util.Arrays;

public class ArgsDemo {
    public static void main(String[] args) {
        doSome(1,"hello", "world", "java");
        doSome(1,"hello", "world");
        doSome(1,new String[]{"hello", "world"});
        doSome(2,"hello", "world");
    }
    public static void doSome(int a,String... s){
        System.out.println(s.length);
        System.out.println(Arrays.toString(s));
    }
}

